package com.halflife.comeElectricity.member.rider;

import com.halflife.comeElectricity.basic.datadic.DataDic;
import com.halflife.framework.generator.annotation.QueryAnn;

import java.math.BigDecimal;
import java.util.List;

@QueryAnn(title = "会员",mainTitle = "会员管理",table = "t_rider")
public class RiderTemp {
    private Integer id;
    @QueryAnn(value = "编码",refered = true)
    private String unionid;
    @QueryAnn(value = "头像")
    private String img;
    private String cardFront;
    private String cardReverse;
    private String spare;
    @QueryAnn(refered = true,operate = "like")
    private String name;
    @QueryAnn(refered = true,operate = "like")
    private String phone;
    @QueryAnn(value = "身份证号")
    private String carNo;
    @QueryAnn(value = "头像")
    private String idCardNo;
    @QueryAnn(value = "头像")
    private String address;
    @QueryAnn(value = "头像")
    private String addressExt;
    @QueryAnn(value = "身份信用")
    private Integer level;
    @QueryAnn(value = "状态")
    private Integer state;
    @QueryAnn(value = "过期日期")
    private Long endDate;
    @QueryAnn(value = "电池租赁类型")
    private Integer rentType;
    @QueryAnn(value = "剩余金额")
    private BigDecimal balance;
    private List<DataDic> payTypeList;
    public void init() {
        this.level = 0;
        this.state = RiderStatus.NORMAL.getValue();

    }

    public String getStateStr() {
        if (this.getState() == null) {
            return "";
        }
        return RiderStatus.getCNameByValue(this.getState().intValue());
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid == null ? null : unionid.trim();
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img == null ? null : img.trim();
    }

    public String getSpare() {
        return spare;
    }

    public void setSpare(String spare) {
        this.spare = spare == null ? null : spare.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo == null ? null : carNo.trim();
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo == null ? null : idCardNo.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getAddressExt() {
        return addressExt;
    }

    public void setAddressExt(String addressExt) {
        this.addressExt = addressExt == null ? null : addressExt.trim();
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getCardFront() {
        return cardFront;
    }

    public void setCardFront(String cardFront) {
        this.cardFront = cardFront;
    }

    public String getCardReverse() {
        return cardReverse;
    }

    public void setCardReverse(String cardReverse) {
        this.cardReverse = cardReverse;
    }

    public Long getEndDate() {
        return endDate;
    }

    public void setEndDate(Long endDate) {
        this.endDate = endDate;
    }

    public Integer getRentType() {
        return rentType;
    }

    public void setRentType(Integer rentType) {
        this.rentType = rentType;
    }

    public List<DataDic> getPayTypeList() {
        return payTypeList;
    }

    public void setPayTypeList(List<DataDic> payTypeList) {
        this.payTypeList = payTypeList;
    }
}